
export default {
    routes: [{
        path: '/',
        name:'Home',
        component: () => import("@/views/Home")
    },
     {
        path: "/login",
        name:'Login',
        component: () => import("@/views/Login")
    },
    {
        path: "/reg",
        name:"Reg",
        component: () => import("@/views/Reg")
    },
    {
        path:"/personal",
        name:"Personal",
        component:() => import("@/views/Personal"),
        meta:{
            auth:true
        }
    },
    {
        path: "/protected",
        name: "Protected",
        component: () => import("@/views/Protected.vue"),
        meta: {
          auth: true,
        },
      },
    {
        path:"/auth",
        name:"Auth",
        component:() => import("@/views/Auth")
    },
    {
        path: "/channel/:id ",
        name:'ChannelNews',
        component: () => import("@/views/ChannelNews")
    },
    {
        path: "*",
        name:"404",
        component: () => import("@/views/NotFound")
    },
    ],
    mode: 'history',
}